package com.yykj.hospital.server.model.repository.banci;

import com.yykj.hospital.server.model.entity.Hospital;
import com.yykj.hospital.server.model.entity.banci.HospitalDoctorVisitLevel;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface HospitalDoctorVisitLevelRepository extends JpaRepository<HospitalDoctorVisitLevel,Integer> , JpaSpecificationExecutor<HospitalDoctorVisitLevel> {
    List<HospitalDoctorVisitLevel> findAllByHospitalId(Integer hospitalId);
    List<HospitalDoctorVisitLevel> findAllByHospitalIdAndStatus(Integer hospitalId,Boolean status);
}
